import BaseRequest, {ApiResponse} from '@/shared/utils/request'
import { HOSTS } from '@/shared/constants/index'
import {HairProduct} from "@/shared/services/model/product";

/**
 * 服务类示例
 */
class ProductService extends BaseRequest {
	constructor() {
		super({
			hostKey: HOSTS.TARO_API_BASE,
		})
	}

  hairProduct(payload: any): Promise<ApiResponse<HairProduct[]>> {
    return this.get<HairProduct[]>({
      url: '/api/v1/item/list',
      data: payload,
    })
  }
}

export default new ProductService()
